package com.layblog.mapper;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.layblog.entity.Comment;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.layblog.vo.CommentVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * <p>
 * Mapper 接口
 * </p>
 *
 * @author JackLin
 * @since 2021-07-30
 */
@Mapper
public interface CommentMapper extends BaseMapper<Comment> {

    IPage<CommentVO> selectComments(Page page, @Param(Constants.WRAPPER) QueryWrapper<Comment> wrapper);

}
